package com.atstudent.gmall.common.feign.search.fallback;

import com.atstudent.gmall.common.feign.search.SearchFeignClient;
import com.atstudent.gmall.common.result.Result;
import com.atstudent.gmall.search.dto.SearchParamDTO;
import com.atstudent.gmall.search.entity.Goods;
import com.atstudent.gmall.search.vo.SearchResponseVo;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author 薛有朋
 * @CreatDate 2025/3/14 19:12
 **/
@Slf4j
public class SearchFeignClientFallback implements SearchFeignClient {

    @Override
    public Result saveGoods(Goods goods) {
        log.info("SearchFeignClientFallback...saveGoods方法执行了...");
        return Result.ok();
    }

    @Override
    public Result deleteGoods(Long skuId) {
        log.info("SearchFeignClientFallback...deleteGoods方法执行了...");
        return Result.ok();
    }

    @Override
    public Result<SearchResponseVo> search(SearchParamDTO searchParamDTO) {
        log.info("SearchFeignClientFallback...search方法执行了...");
        return Result.ok();
    }

    @Override
    public Result updateHotScore(Long skuId, Long hotScore) {
        log.info("SearchFeignClientFallback...updateHotScore方法执行了...");
        return Result.ok();
    }
}
